#ifndef POWERUP_H
#define POWERUP_H
#include <vector>

using namespace std;

class PowerUp
{
  //List of PowerUp values; each slot will be reserved for a specific PowerUp value
  vector<int> powerUpList;
  vector<int> timers;

public:
  //Instantiates the vector with default values for each of the slots.
  PowerUp();

  /*Activate PowerUps; called by Game when applicable;
    changes value in appropriate slot, and sets slot in timer).*/
  void setCherries();
  void setEnergyDrink();
  void setChewySnack();
  void setSpyPackage();
  void setPaddlePlus();
  void setSteroids();
  void setHarryPotterGlasses();

  //decrements any value in timers higher than 0 by one, and resets values in powerUpList when timers expire.
  void update();

  //load or save powerup state to gamesave file; called by Game when appropriate
  void load();
  void save();

};

#endif // POWERUP_H
